Ext.define('BM.view.goods.TechnicianEdit', {
    extend: 'Ext.window.Window',
    alias : 'widget.technicianedit',
    title : '技师信息修改',
    layout: 'fit',
    autoShow: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                labelWidth:50,
                width:300,
                items: [
                    {
                        xtype: 'textfield',
                        name : 'technicianNum',
                        fieldLabel: '技师编号',
                        allowBlank: false
                    },
                    {
                        xtype: 'textfield',
                        name : 'technicianName',
                        fieldLabel: '技师姓名',
                        allowBlank: false 
                    },
                    {
                        xtype: 'textfield',
                        name : 'technicianName_S',
                        fieldLabel: '技师简称'
                    }, {
                        xtype: 'textfield',
                        name : 'gender',
                        fieldLabel: '技师性别',
                        allowBlank: false
                    },
                    {
                        xtype: 'textfield',
                        name : 'technicianType_FK',
                        fieldLabel: '技师类型',
                        allowBlank: false 
                    },
                    {
                        xtype: 'textfield',
                        name : 'serveArea',
                        fieldLabel: '服务区域'
                    }, {
                        xtype: 'textfield',
                        name : 'connection',
                        fieldLabel: '联系方式',
                        allowBlank: false
                    },
                    {
                        xtype: 'textfield',
                        name : 'cid',
                        fieldLabel: '身份证号',
                        allowBlank: false 
                    },
                    {
                        xtype: 'textarea',
                        name : 'memo',
                        fieldLabel: 'memo'
                    },
                    {
                        xtype: 'hidden',
                        name : 'id'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Save',
                action: 'save'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});